package com.example;

import java.io.IOException;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;


public class Main extends Application {

	
	public static void main(String[] args) {
		launch(args);
	}
	
	
	@Override	
	public void start(Stage primaryStage) throws IOException
	{   
		// https://blogs.oracle.com/jmxetc/entry/connecting_scenebuilder_edited_fxml_to
		
		Parent root = null;
	
		try {
			root = FXMLLoader.load(getClass().getResource("/resources/toggle.fxml"));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		primaryStage.setTitle("ToggleDemo");
		primaryStage.setScene(new Scene(root, 800, 600));
		primaryStage.show();	
	}
	

}
